#!/usr/bin/env node
const url=process.argv[2];
const http=require('https');
const addr='https://gitee.com/api/v5/users/guo-yuxin1/repos?type=all&sort=full_name&page=1&per_page=20'
http.get(addr,(res)=>{
  console.log(`HTTP/${res.httpVersion}${res.statusCode}${res.statusMessage}`);
  console.log(res.headers)
  console.log()
  let data=''
  res.on('data',(chunk)=>{
    data+=chunk;
  });
res.on('end',()=>{
  data=JSON.parse(data)
  for(const repos of data){
    console.log(repos.full_name);
  }
})
})


